#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <set>
#include <map>
#include <vector>
using namespace std;

void Test1()
{
	multiset<int> m1;
	m1.insert(1);
	m1.insert(1);
	m1.insert(1);
	m1.insert(1);
	m1.insert(1);
	m1.insert(1);
	for (auto e : m1)
	{
		cout << e << " ";
	}

	vector<int> v1 = { 9,8,7,6,5,4,3,2,1,2,3,4,6,7 };
	set<int> s1(v1.begin(),v1.end());
	for (int i : s1)
	{
		cout << i << " ";
	}
}

void Test2()
{
	multimap<int, string> m1;
	map<int, string> m2;
	vector<int> v1 = { 185,185,185,174,160,155 };
	vector<string> v2 = { "liuyi","chener","zhangsan","liuyi","wangwu","zhaoliu" };

	for (int i = 0; i < v1.size(); i++)
	{
		m2.insert(make_pair(v1[i], v2[i]));
	}
	for (auto it = m2.begin(); it != m2.end(); it++)
	{
		cout << "hight: " << it->first << "   "  << it->second << endl;
	}
}
void Test3()
{
	map<int, string> m1;
	
	vector<int> v1 = { 181,182,185,174,160,155 };
	vector<string> v2 = { "liuyi","chener","zhangsan","liuyi","wangwu","zhaoliu" };

	for (int i = 0; i < v1.size(); i++)
	{
		m1.insert({ v1[i], v2[i] });
	}
	for (auto it = m1.begin(); it != m1.end(); it++)
	{
		cout << "hight: " << it->first << "   " << it->second << endl;
	}
}


int main()
{
	Test3();
	return 0;
}